package com.smm.web.mtower.domain;

public class Camera {

    private String ip = "192.168.8.250";    //内网访问ip

    private String port ="8000";            //服务端口

    private String account ="admin";         //登录帐号

    private String password ="abc12345";        //登录密码


    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port == null ? null : port.trim();
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }


    @Override
    public boolean equals(Object obj) {

        Camera objCamera = (Camera) obj;

        if(!objCamera.getIp().equals(this.getIp())) return  false;
        if(!objCamera.getPort().equals(this.getPort())) return  false;
        if(!objCamera.getAccount().equals(this.getAccount())) return  false;
        if(!objCamera.getPassword().equals(this.getPassword())) return  false;

        return true;
    }
}